﻿using Mes.Domain.BoundedContext.EntityBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mes.Domain.BoundedContext.Entities.Quality
{
    public class QmSpecRuleLink : NoIdEntityBase
    {
        /// <summary>
        /// 规格ID
        /// Identify QM specification
        /// </summary>
        public int Qm_Spec_Id { get; set; }

        /// <summary>
        /// 规则ID
        /// Identify rule
        /// </summary>
        public int Rule_Id { get; set; }

        /// <summary>
        /// 最新编辑原因
        /// Why record was changed
        /// </summary>
        public string? Last_Edit_Comment { get; set; }

        /// <summary>
        /// 最新编辑用户
        /// Who last changed record
        /// </summary>
        public string Last_Edit_By { get; set; } = String.Empty;

        /// <summary>
        /// 最新编辑时间
        /// When record was last changed
        /// </summary>
        public DateTime Last_Edit_At { get; set; } = DateTime.Now;

        /// <summary>
        /// 行ID
        /// Unique row identifier
        /// </summary>
        public int Row_Id { get; set; }
    }
}
